home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / lang / Python152_Src.lha / Python152_Source / Embed / Readme.txt next >
Text File  |  1999-05-01  |  1KB  |  42 lines

  1.  
  2. Embedding Python in your own programs
  3. -------------------------------------
  4.  
  5. This directory shows how to embed the Python interpreter in your own
  6. application.  The file test.c shows you all that is needed in your C code.
  7.  
  8. To compile it, you'll have to assign PythonSrc:  to where your Python
  9. source tree is.
  10.  
  11. See the test.c code and the SMAKEFILE for details.
  12.  
  13.  
  14. Overview of the Python object/library files you must link with:
  15. Modules/getbuildinfo.o
  16. Modules/Modules.lib
  17. Parser/Parser.lib
  18. Python/Python.lib
  19. Objects/Objects.lib
  20. Amiga/amigapythonamitcp.lib
  21.  
  22. lib:scm881nb.lib
  23. lib:scnb.lib
  24.  
  25. (in this order). (Since 1.5.2, you'll need to compile with DATA=FARONLY,
  26. because the near data section is too large for DATA=NEAR).
  27.  
  28. SCOPTIONS are identical to the SCOPTIONS in the Python source tree, except
  29. for the path to the GST and the Include/ directory.
  30.  
  31.  
  32. You can override Python's $VER version string by declaring one of your own.
  33. See the code.
  34.  
  35.  
  36. Problem:  The only problem I'm aware of is that the resulting executable is
  37. 400K+ minimum...
  38.  
  39.  
  40. Irmen de Jong
  41. irmen@bigfoot.com
  42.